<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
  <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
  <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
  <style type="text/css">

/* tooltip */
#tooltip{
  position:absolute;
  border:1px solid #ccc;
  background:#333;
  padding:2px;
  display:none;
  color:#fff;
}
</style>
</head>
<body style="padding:10px;">
  <div class="tplay-body-div">
    <div class="layui-tab">
      <ul class="layui-tab-title">
        <li class="layui-this" id="aaa">产品阅读数量</li>
      </ul>
    </div> 
     <form class="layui-form serch" action="{:url('admin/project/read_num')}" method="post">
        <div class="layui-form-item" style="float: left;margin-left: 200px">
        <div class="layui-input-inline">
            <div class="layui-inline">
              <input type="text" name="title" value="{$Think.post.title??''}" class="layui-input"  placeholder="请输入产品标题">
            </div>
          </div>
            <div class="layui-input-inline">
            <input type="text" name="start_time" value="{$Think.post.start_time??''}" class="layui-input" id="test1" placeholder="请输入开始时间">
          </div>
          <div class="layui-input-inline">
            <input type="text" name="end_time" value="{$Think.post.end_time??''}" class="layui-input" id="test2" placeholder="请输入结束时间">
          </div>
          <button class="layui-btn layui-btn-danger layui-btn-sm" lay-submit="" lay-filter="serch">搜索</button>
        </div>
      </form>  
    <table  class="layui-table" lay-size="sm" >
      <thead>
        <tr>
          <th style="width: 600px;"><span style="margin-left: 260px">产品名称</span></th>
          <th>阅读数量</th>
        </tr> 
      </thead>
      <tbody>
        {volist name="project_read" id="loop"}
        <tr >
          <td align="center" >{$loop.title}</td>
          <td>{if $loop.num!=null}{$loop.num}{else}0{/if}</td>
        </tr>
        {/volist}
      </tbody>
    </table>
    <div style="padding:0 20px;">{notempty name="$project_read"}{$project_read->render()}{/notempty}</div>

    {include file="public/foot"}
    <script>
layui.use('laydate', function(){
  var laydate = layui.laydate;
  
 laydate.render({
    elem: '#test1'
    ,format: 'yyyy-MM-dd'
  });
 laydate.render({
    elem: '#test2'
    ,format: 'yyyy-MM-dd'
  });
  
  
});
</script>
  </div>
</body>
</html>
